<template>
  <div class="pie-chart-container">
    <el-row :gutter="20" class="box-between">
      <el-col v-for="item in itemsChart" :key="item.id" :span="24">
        <div class="chart-wrapper">
          <pie-chart :id="item.id" :title="item.title" :series="item.series" :color="item.color" />
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import PieChart from '@/components/Charts/PieChart'
export default {
  components: {
    PieChart
  },
  props: {
    itemsChart: {
      type: Array,
      default: null
    }
  },
  data() {
    return {}
  },
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
.pie-chart-container {
  // margin-top: 20px;
  background: rgba(255, 255, 255, 1);
  .chart-wrapper {
    // padding: 50px;
    height: 380px;
    padding: 50px 16px 50px;
  }
}
</style>
